    <div class="line-label">
      <%= page_entries_info(@general_news_letters_materials) %>
    </div>

    <% if @general_news_letters_materials.size > 0 %>
      <% paginated_section(@general_news_letters_materials, options_will_paginate({:params => { :controller => :general_news_letters, :action => :general_news_letter_materials_index}})) do %>

    <table style="border-style: ridge">
      <thead>
        <tr>
          <th><%=t('activerecord.models.material')%></th>
          <th colspan="4"><%= t('title_actions') %></th>
        </tr>
      </thead>

      <tbody>
        <% actual_record = 0 %>
        <% @general_news_letters_materials.each do |general_news_letter_material| %>
          <% actual_record += 1 %>
        <tr>
            <%#=h general_news_letter_material.material.title %>
            <% @material = general_news_letter_material.material %>
            <td><%= render :partial => 'materials/material_info_for_list', :object => @material %></td>
            <% if actual_record == 1 && @general_news_letters_materials.offset == 0 %>
              <td></td>
            <% else %>
              <td class="action"> <%= link_to t('btn_up'), general_news_letter_up_material_path(general_news_letter_material) %> </td>
            <% end %>
            <% if (@general_news_letters_materials.offset + actual_record) == @general_news_letters_materials.total_entries %>              
              <td></td>
            <% else %>
              <td class="action"><%= link_to t('btn_down'), general_news_letter_down_material_path(general_news_letter_material) %></td>
            <% end %>
            <!--td class="action"><%#= link_to t('btn_show'), material_path(general_news_letter_material.material) %></td-->
            <td class="action">
              <% if @general_news_letter.state != GeneralNewsLetter::STATE_ALREADY_SENT %>
                <%= link_to t('btn_destroy'), general_news_letter_delete_material_path(general_news_letter_material), :confirm => t('msg_sure_destroy?'), :method => :post%>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  <% end %>
<% end %>